<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java"%>
<%@ include file="/page/common/taglibs.jsp" %>
<html>
<head>
<title>33e9招聘管理系统v0.1登陆</title>
<script src="${ctx}/js/common.js" type="text/javascript"></script>
<script src="${ctx}/js/security/login.js" type="text/javascript"></script>
<script language='javascript'>
	window.onload = function(){
		var error = '${param.login_error}';
		if(error){
			if(error == '1'){
				alert('用户名或密码错误！');
			} else if(error == '2'){
				alert('验证码错误！');
				document.getElementById('_captcha_parameter').className = "text_error";
			}
			document.getElementById('j_password').select();
		} else {
			document.getElementById('j_username').focus();
		}
	}
</script>
<link  href="${ctx}/css/login.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center"><img src="${pageContext.request.contextPath}/images/header.jpg"/></div>
<s:form action="/j_acegi_security_check"
	onsubmit="return checkForm(this);">
	<table width="240" cellpadding="1" cellspacing="1" align="center">
		<tr>
			<td height="50" colspan="2" align="center"><strong>33e9招聘管理系统v0.1登陆</strong></td>
		</tr>
	<tr>
	    <td class="tdLabel"><label for="j_username" class="label">用户名:</label></td>
	    <td><input type="text" name="j_username" value="${j_username}" tabindex="1" id="j_username" class="text_regular"/></td>
	</tr>
	<tr>
	    <td class="tdLabel"><label for="j_password" class="label">密&nbsp;&nbsp;码:</label></td>
	    <td><input type="password" name="j_password" id="j_password" class="text_regular" tabindex="2"/></td>
	</tr>
		<s:textfield name="_captcha_parameter" label="验证码" tabindex="3" id="_captcha_parameter" AUTOCOMPLETE="off" cssClass="text_regular"/>
		<tr>	
			<td height="50" colspan="2" align="center">
				<a href="#"
					onclick="document.getElementById('captchaImage').src='${ctx}/security/jcaptcha.do?q='+Math.random();">
					<img id="captchaImage" src="<c:url value="/security/jcaptcha.do"/>" height="30"
						title="看不清楚？点击图片更新" width="120" style="border: 1 solid #8D8D8D" />
				</a>
			</td>
		</tr>
		<tr>
			<td height="50" colspan="2" align="center">
				<a href="javascript:void(0)"><input name="button" tabindex="5" type="submit" class="submit_button" value="登　录" id="btn_login"/></a>
			</td>
		</tr>

	</table>
</s:form>

</body>
</html>